# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Andrew Hills <ahills@ednos.net>
# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=girara
pkgver=0.3.7
pkgrel=0
pkgdesc="girara - gtk user interface that focuses on simplicity and minimalism"
url="https://git.pwmt.org/pwmt/girara"
arch="all"
license="Zlib"
checkdepends="dbus"
makedepends="gtk+3.0-dev libnotify-dev json-c-dev intltool doxygen check-dev
	xvfb ncurses meson ninja"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="https://git.pwmt.org/pwmt/girara/-/archive/$pkgver/girara-$pkgver.tar.gz
	test.sh"


build() {
	abuild-meson . build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

check() {
	if [ "$CARCH" != "ppc64le" ]; then
		"$srcdir/test.sh"
	fi
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

doc() {
	pkgdesc="girara - gtk user interface that focuses on simplicity and minimalism (documentation)"
	local _docdir="$subpkgdir"/usr/share/doc/$pkgname/
	mkdir -p "$_docdir"
	cp -r "$builddir"/build/doc/html/* "$_docdir"
}


sha512sums="
19bfc1c8f5e19315a5bf0fd7ca0f60fb396af8d79663147db24564d93f4a31303d418d9c84eb11614ce8f4526ee65d15d95fa8b9c06e27f0da35e0248c6a8622  girara-0.3.7.tar.gz
2190d324753810c8dc5b109274dcf4f644e51edcda876c225ac76369dd569dda0b8db445b01dac1ac2b06178534d18e1074ca37d1a69622bdc58fd77350b4ddd  test.sh
"
